Description | : **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier). The Map Configuration Create request allows the caller to create a map configuration in their Azure Maps account. Creator makes it possible to develop applications based on your private indoor map data using Azure Maps API and SDK. [This](https://docs.microsoft.com/azure/azure-maps/creator-indoor-maps) article introduces concepts and tools that apply to Azure Maps Creator. ## Submit Create Request To create your map configuration you will make a `POST` request with a map configuration file. ### POST Body for Create Request An `HTTP POST` request with the map configuration data in the body of the request is required to create a new map configuration in your Azure Maps account. The map configuration data must be in JSON format with `Content-Type` set to `application/json` in the header. Alternatively, you can send the map configuration JSON in a ZIP file along with any thumbnail images it references, with `Content-Type` set to `application/zip` in the header. Note: The embedded JSON size limit is 1 MB and zip file size limit is 23 MB. Here's a sample map configuration json: ```json { "version": 1.0, "description": "First indoor map configuration!", "defaultConfiguration": "indoor_light", "configurations": [ { "name": "indoor_light", "displayName": "Indoor light", "theme": "light", "thumbnail": "indoor_2022-01-01.png", "baseMap": "microsoft_light", "layers": [ { "tilesetId": "9601b149-cff6-dae6-af94-396f1b795fdb", "styleId": "microsoft-maps:indoor_2022-01-01" } ] }, { "name": "indoor_dark", "displayName": "Indoor dark", "theme": "dark", "baseMap": "microsoft_dark", "thumbnail": "indoor_dark_2022-01-01.png", "layers": [ { "tilesetId": "9601b149-cff6-dae6-af94-396f1b795fdb", "styleId": "microsoft-maps:indoor_dark_2022-01-01" } ] } ] } ``` Since the map configuration json contains two thumbnail image references 'indoor_2022-01-01.png' and 'indoor_dark_2022-01-01.png', a zip file including the map configuration json file and two thumbnail images should be provided as request body to make a valid create request. The Create Map Configuration API is a [long-running operation](https://aka.ms/am-creator-lrt-v2). |
Reference | : Link ¶ |
⚼ Request
POST:
/styles/mapconfigurations
{
x-ms-client-id:
string
,
api-version:
string
,
alias:
string
,
description:
string
,
MapConfiguration:
}
{
,
version:
number
,
description:
string
,
defaultConfiguration:
string
,
configurations:
}
[
]
,
{
,
name:
string
,
displayName:
string
,
description:
string
,
theme:
enum
,
thumbnail:
string
,
baseMap:
enum
,
layers:
}
[
]
,
{
,
tilesetId:
string
,
styleId:
string
,
}
⚐ Response (202)
{
operation-location:
string
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}